package com.entity;


import com.alibaba.fastjson.annotation.JSONField;

import java.sql.Timestamp;

public class User {

  private Integer id;
  private Integer userId;
  private String userName;
  private String phone;
  private Integer status;
  private String idCard;
  private String birthday;
  private Integer sex;
  private String address;
  private String area;
  @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  private Timestamp createdTime;
  private Integer cardId;
  private String momo;
  private Integer staffId;


  @Override
  public String toString() {
    return "User{" +
            "id=" + id +
            ", userId=" + userId +
            ", userName='" + userName + '\'' +
            ", phone='" + phone + '\'' +
            ", status=" + status +
            ", idCard='" + idCard + '\'' +
            ", birthday='" + birthday + '\'' +
            ", sex=" + sex +
            ", address='" + address + '\'' +
            ", area='" + area + '\'' +
            ", createdTime=" + createdTime +
            ", cardId=" + cardId +
            ", momo='" + momo + '\'' +
            ", staffId=" + staffId +
            '}';
  }

  public User(Integer id, Timestamp createdTime) {
    this.id = id;
    this.createdTime = createdTime;
  }

  public User(Integer id, Integer userId, String userName, String phone, Integer status, String idCard, String address, Timestamp createdTime, Integer cardId) {
    this.id = id;
    this.userId = userId;
    this.userName = userName;
    this.phone = phone;
    this.status = status;
    this.idCard = idCard;
    this.address = address;
    this.createdTime = createdTime;
    this.cardId = cardId;
  }

  public User(Integer id, Integer userId, String userName, String phone, String idCard, String address, Timestamp createdTime, Integer cardId) {
    this.id = id;
    this.userId = userId;
    this.userName = userName;
    this.phone = phone;
    this.idCard = idCard;
    this.address = address;
    this.createdTime = createdTime;
    this.cardId = cardId;
  }

  public User(Integer userId, String userName, String phone, Integer status, String idCard, String birthday, Integer sex, String address, String area, Timestamp createdTime, Integer cardId, String momo, Integer staffId) {
    this.userId = userId;
    this.userName = userName;
    this.phone = phone;
    this.status = status;
    this.idCard = idCard;
    this.birthday = birthday;
    this.sex = sex;
    this.address = address;
    this.area = area;
    this.createdTime = createdTime;
    this.cardId = cardId;
    this.momo = momo;
    this.staffId = staffId;
  }

  public User(Integer id, Integer userId, String userName, String phone, Integer status, String idCard, String birthday, Integer sex, String address, String area, Timestamp createdTime, Integer cardId, String momo, Integer staffId) {
    this.id = id;
    this.userId = userId;
    this.userName = userName;
    this.phone = phone;
    this.status = status;
    this.idCard = idCard;
    this.birthday = birthday;
    this.sex = sex;
    this.address = address;
    this.area = area;
    this.createdTime = createdTime;
    this.cardId = cardId;
    this.momo = momo;
    this.staffId = staffId;
  }

  public User() {
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }


  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }


  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }


  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }


  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }


  public String getIdCard() {
    return idCard;
  }

  public void setIdCard(String idCard) {
    this.idCard = idCard;
  }


  public String getBirthday() {
    return birthday;
  }

  public void setBirthday(String birthday) {
    this.birthday = birthday;
  }


  public Integer getSex() {
    return sex;
  }

  public void setSex(Integer sex) {
    this.sex = sex;
  }


  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }


  public String getArea() {
    return area;
  }

  public void setArea(String area) {
    this.area = area;
  }


  public Timestamp getCreatedTime() {
    return Timestamp.valueOf(String.valueOf(createdTime));
  }

  public void setCreatedTime(Timestamp createdTime) {
    this.createdTime = createdTime;
  }


  public Integer getCardId() {
    return cardId;
  }

  public void setCardId(Integer cardId) {
    this.cardId = cardId;
  }


  public String getMomo() {
    return momo;
  }

  public void setMomo(String momo) {
    this.momo = momo;
  }


  public Integer getStaffId() {
    return staffId;
  }

  public void setStaffId(Integer staffId) {
    this.staffId = staffId;
  }

}
